package com.caigou.mapper.cms;

import com.caigou.pojo.ArticleAuditList;
import com.caigou.pojo.RouterTableColumn;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository("RouterMapper")
public interface RouterMapper {
    List<RouterTableColumn> loadColumnListByPage(@Param("pageUrl") String pageUrl, @Param("tableUrl") String tableUrl);

    Integer loadUserColumnExist(@Param("userId") String userId, @Param("columnId") Integer columnId);

    Integer loadUserColumnClickStatus(@Param("userId") String userId, @Param("columnId") Integer columnId);

    Integer loadUserColumnShowIndex(@Param("userId") String userId, @Param("columnId") Integer columnId);

    void saveUserPageTableData(@Param("userId") String userId, @Param("columnId") Integer columnId, @Param("clickStatus") Integer clickStatus, @Param("showIndex") Integer showIndex);

    void updateUserPageTableData(@Param("userId") String userId, @Param("columnId") Integer columnId, @Param("clickStatus") Integer clickStatus, @Param("showIndex") Integer showIndex);

    List<ArticleAuditList> loadArticleAuditList(@Param("userId") String userId);

    List<ArticleAuditList> loadUserListByName(@Param("selectName") String selectName);
}
